<div class="block">
  <div class="content">
    <h2 class="title"><%= GlobalSetting[:sns_name] %>のシステムメッセージ一覧</h2>
    <div class="inner">
      <p id="notice"><%= notice %></p>

      <table class="table">
        <tr>
          <th>タイトル:</th>
          <td><%= @system_message.title %></td>
        </tr>
        <tr>
          <th>本文:</th>
          <td><%= text_format(@system_message.body, "plain") %></td>
        </tr>
        <tr>
          <th>掲載期限:</th>
          <td><%= time_format(@system_message.viewing_limit, "%Y-%m-%d %H:%M:%S") %></td>
        </tr>
      </table>

      <%= link_to '編集', edit_admin_system_message_path(@system_message) %> |
      <%= link_to '戻る', admin_system_messages_path %>
    </div>
  </div>
</div>
